package com.zxl.controller;

import com.zxl.model.MetaDatabase;
import com.zxl.model.MetaTable;
import com.zxl.service.StatisticsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/hive")
public class StatisticsDataController {

    @Resource
    private StatisticsService service;

    @GetMapping("/checkHdfsFile")
    public void checkHdfsFile() {
        service.checkHdfsFile(new MetaTable(), new MetaDatabase(), "12", "zxl");
    }
}
